import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/Home'
import JsTest from '@/pages/JsTest'
import JsPromise from '@/pages/JsPromise'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/JsPromise',
      name: 'jsPromise',
      component: JsPromise
    },
    {
      path: '/JsTest',
      name: 'jsTest',
      component: JsTest
    }
  ]
})
